package com.baizhi.hospital.Filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyWebConfig {
	@Bean
	public FilterRegistrationBean loginFilter(){
		FilterRegistrationBean registrationBean = new FilterRegistrationBean(new MyFilter());
		registrationBean.addUrlPatterns("*.jsp");
		return registrationBean;
	}
}
